package com.lebang.controller.sys;

import com.lebang.common.Login;
import com.lebang.service.sys.SdkUploadPackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/sdkpackage")
public class SdkUploadPackageController {
    @Autowired
    private SdkUploadPackageService baseService;
    @Login
    @GetMapping("/list")
    public String list(){

        return "/sdkpackage/list";
    }
    @Login
    @PostMapping("/page")
    @ResponseBody
    public Map<String,Object> recordOrder(Integer page, Integer limit, String type){
        Map<String,Object> returnMap=new HashMap<>(1);
        int startNum = (page - 1) * limit;
        Map<String,Object> queryMap=new HashMap<>(1);
        queryMap.put("type",type);
       // List<Map> list=baseService.page(startNum,limit,queryMap);
        returnMap.put("data",null);
        returnMap.put("count",null);
        returnMap.put("code",0);
        return  returnMap;
    }
}
